home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / t_sys5 / unixkit.tgz / unixkit.tar / unixkit / grinos.dif next >
Text File  |  1991-11-26  |  15KB  |  579 lines

  1. Nov 26 12:44 1991  diff -c -l grinos.orig/8250.h g/8250.h Page 1
  2.  
  3.  
  4. *** grinos.orig/8250.h    Wed Nov 20 16:05:32 1991
  5. --- g/8250.h    Tue Nov 26 10:29:44 1991
  6. ***************
  7. *** 1,5 ****
  8. --- 1,6 ----
  9.   /* Various I/O definitions specific to asynch I/O on the IBM PC */
  10.   /* Mods by G1EMM */
  11. + #ifndef UNIX
  12.   #ifndef    _8250_H
  13.   #define    _8250_H
  14.   
  15. ***************
  16. *** 164,166 ****
  17. --- 165,168 ----
  18.   INTERRUPT asy4vec __ARGS((void));
  19.   
  20.   #endif    /* _8250_H */
  21. + #endif  /* not UNIX */
  22. Nov 26 12:44 1991  diff -c -l grinos.orig/axheard.c g/axheard.c Page 1
  23.  
  24.  
  25. *** grinos.orig/axheard.c    Wed Nov 20 16:05:45 1991
  26. --- g/axheard.c    Tue Nov 26 10:30:11 1991
  27. ***************
  28. *** 11,17 ****
  29.   #include "ip.h"
  30.   #include "timer.h"
  31.   
  32. ! #define iscallsign(c) ((isupper(c)) || (isdigit(c)) || (c =='\x20'))
  33.   int axheard_filter_flag = AXHEARD_PASS;
  34.   
  35.   static struct lq *al_create __ARGS((struct iface *ifp,char *addr));
  36. --- 11,17 ----
  37.   #include "ip.h"
  38.   #include "timer.h"
  39.   
  40. ! #define iscallsign(c) ((isupper(c)) || (isdigit(c)) || (c ==' '))
  41.   int axheard_filter_flag = AXHEARD_PASS;
  42.   
  43.   static struct lq *al_create __ARGS((struct iface *ifp,char *addr));
  44. Nov 26 12:44 1991  diff -c -l grinos.orig/bootpcmd.c g/bootpcmd.c Page 1
  45.  
  46.  
  47. *** grinos.orig/bootpcmd.c    Wed Nov 20 16:05:48 1991
  48. --- g/bootpcmd.c    Tue Nov 26 10:30:38 1991
  49. ***************
  50. *** 12,19 ****
  51.   
  52.   
  53.   #include <stdio.h>
  54. ! #include <sys\types.h>
  55. ! #include <sys\stat.h>
  56.   #include <time.h>
  57.   #include <ctype.h>
  58.   #ifdef    ANSIPROTO
  59. --- 12,19 ----
  60.   
  61.   
  62.   #include <stdio.h>
  63. ! #include <sys/types.h>
  64. ! #include <sys/stat.h>
  65.   #include <time.h>
  66.   #include <ctype.h>
  67.   #ifdef    ANSIPROTO
  68. Nov 26 12:44 1991  diff -c -l grinos.orig/bootpd.c g/bootpd.c Page 1
  69.  
  70.  
  71. *** grinos.orig/bootpd.c    Wed Nov 20 16:05:48 1991
  72. --- g/bootpd.c    Tue Nov 26 10:30:55 1991
  73. ***************
  74. *** 18,25 ****
  75.   
  76.   
  77.   #include <stdio.h>
  78. ! #include <sys\types.h>
  79. ! #include <sys\stat.h>
  80.   #include <ctype.h>
  81.   #include <time.h>
  82.   
  83. --- 18,25 ----
  84.   
  85.   
  86.   #include <stdio.h>
  87. ! #include <sys/types.h>
  88. ! #include <sys/stat.h>
  89.   #include <ctype.h>
  90.   #include <time.h>
  91.   
  92. ***************
  93. *** 379,389 ****
  94.   struct iface *iface;
  95.   struct host *hp;
  96.   {
  97. !     char     cookie[5] = {99, 130, 83, 99, 0};
  98.       int     len;
  99.       int    mod;
  100.       int    i;
  101.       char    *sizep;
  102.   
  103.       /* Magic cookie */
  104.       strcpy (vend, cookie); 
  105. --- 379,395 ----
  106.   struct iface *iface;
  107.   struct host *hp;
  108.   {
  109. !     char     cookie[5];
  110.       int     len;
  111.       int    mod;
  112.       int    i;
  113.       char    *sizep;
  114. +     cookie[0] = 99;
  115. +     cookie[1] = 130;
  116. +     cookie[2] = 83;
  117. +     cookie[3] = 99;
  118. +     cookie[4] = 0;
  119.   
  120.       /* Magic cookie */
  121.       strcpy (vend, cookie); 
  122. Nov 26 12:44 1991  diff -c -l grinos.orig/bootpdip.c g/bootpdip.c Page 1
  123.  
  124.  
  125. *** grinos.orig/bootpdip.c    Wed Nov 20 16:05:49 1991
  126. --- g/bootpdip.c    Tue Nov 26 10:31:07 1991
  127. ***************
  128. *** 904,910 ****
  129.    *      q_enqueue()
  130.    *              Enqueue an element in a simple Q.
  131.    */
  132. ! void
  133.   q_enqueue(queue, elem)
  134.   struct q *queue;
  135.   struct q_elt *elem;
  136. --- 904,910 ----
  137.    *      q_enqueue()
  138.    *              Enqueue an element in a simple Q.
  139.    */
  140. ! static void
  141.   q_enqueue(queue, elem)
  142.   struct q *queue;
  143.   struct q_elt *elem;
  144. Nov 26 12:44 1991  diff -c -l grinos.orig/config.h g/config.h Page 1
  145.  
  146.  
  147. *** grinos.orig/config.h    Wed Nov 20 16:05:52 1991
  148. --- g/config.h    Tue Nov 26 10:45:23 1991
  149. ***************
  150. *** 9,21 ****
  151.   #define    RIP        1    /* Include RIP routing */
  152.   #define    HOPCHECK    1    /* IP path tracing command */
  153.   #define    DIALER        1    /* SLIP redial code */
  154. ! #undef    NRS        1    /* NET/ROM async interface */
  155.   #define    NETROM        1    /* NET/ROM network support */
  156.   #undef    LZW        1    /* LZW-compressed sockets */
  157.   #define RLOGINCLI    1    /* Rlogin client code */
  158.   #define    SLIP        1    /* Serial line IP on built-in ports */
  159.   #undef    PPP        1    /* Point-to-Point Protocol code */
  160. ! #define    VJCOMPRESS    1    /* Van Jacobson TCP compression for SLIP */
  161.   #define    POP        1    /* Include POP2 Post Office Protocol */
  162.   #define ESCAPE        1    /* Allow Unix style escape on PC */
  163.   #define    RSPF        1    /* Include Radio Shortest Path First Protocol */
  164. --- 9,21 ----
  165.   #define    RIP        1    /* Include RIP routing */
  166.   #define    HOPCHECK    1    /* IP path tracing command */
  167.   #define    DIALER        1    /* SLIP redial code */
  168. ! #define    NRS        1    /* NET/ROM async interface */
  169.   #define    NETROM        1    /* NET/ROM network support */
  170.   #undef    LZW        1    /* LZW-compressed sockets */
  171.   #define RLOGINCLI    1    /* Rlogin client code */
  172.   #define    SLIP        1    /* Serial line IP on built-in ports */
  173.   #undef    PPP        1    /* Point-to-Point Protocol code */
  174. ! #undef    VJCOMPRESS    1    /* Van Jacobson TCP compression for SLIP */
  175.   #define    POP        1    /* Include POP2 Post Office Protocol */
  176.   #define ESCAPE        1    /* Allow Unix style escape on PC */
  177.   #define    RSPF        1    /* Include Radio Shortest Path First Protocol */
  178. ***************
  179. *** 40,46 ****
  180.   #undef    PC100        1    /* PAC-COM PC-100 driver code */
  181.   #undef    APPLETALK    1    /* Appletalk interface (Macintosh) */
  182.   #undef    DRSI        1    /* DRSI PCPA slow-speed driver */
  183. ! #define    SCC        1    /* PE1CHL generic scc driver */
  184.   #undef    PI        1    /* VE3IFB pi dma card scc driver */
  185.   #define    ASY        1    /* Asynch driver code */
  186.   #undef    SLFP        1    /* SLFP packet driver class supported */
  187. --- 40,46 ----
  188.   #undef    PC100        1    /* PAC-COM PC-100 driver code */
  189.   #undef    APPLETALK    1    /* Appletalk interface (Macintosh) */
  190.   #undef    DRSI        1    /* DRSI PCPA slow-speed driver */
  191. ! #undef    SCC        1    /* PE1CHL generic scc driver */
  192.   #undef    PI        1    /* VE3IFB pi dma card scc driver */
  193.   #define    ASY        1    /* Asynch driver code */
  194.   #undef    SLFP        1    /* SLFP packet driver class supported */
  195. Nov 26 12:44 1991  diff -c -l grinos.orig/domain.c g/domain.c Page 1
  196.  
  197.  
  198. *** grinos.orig/domain.c    Wed Nov 20 16:05:55 1991
  199. --- g/domain.c    Tue Nov 26 10:31:48 1991
  200. ***************
  201. *** 158,164 ****
  202.       return subcmd(Dcmds,argc,argv,p);
  203.   }
  204.   
  205. ! int
  206.   docache(argc,argv,p)
  207.   int argc;
  208.   char *argv[];
  209. --- 158,164 ----
  210.       return subcmd(Dcmds,argc,argv,p);
  211.   }
  212.   
  213. ! static int
  214.   docache(argc,argv,p)
  215.   int argc;
  216.   char *argv[];
  217. Nov 26 12:44 1991  diff -c -l grinos.orig/hardware.h g/hardware.h Page 1
  218.  
  219.  
  220. *** grinos.orig/hardware.h    Wed Nov 20 16:06:10 1991
  221. --- g/hardware.h    Tue Nov 26 10:34:06 1991
  222. ***************
  223. *** 37,43 ****
  224.   void sccstop __ARGS((void));
  225.   
  226.   /* In pc.c: */
  227. ! void clrbit __ARGS((unsigned port,char bits));
  228.   void ctick __ARGS((void));
  229.   INTERRUPT  (*getirq __ARGS((unsigned int)) ) __ARGS((void));
  230.   void freescreen __ARGS((struct session *sp));
  231. --- 37,43 ----
  232.   void sccstop __ARGS((void));
  233.   
  234.   /* In pc.c: */
  235. ! /*void clrbit __ARGS((unsigned port,char bits));*/
  236.   void ctick __ARGS((void));
  237.   INTERRUPT  (*getirq __ARGS((unsigned int)) ) __ARGS((void));
  238.   void freescreen __ARGS((struct session *sp));
  239. ***************
  240. *** 50,56 ****
  241.   int maskon __ARGS((unsigned irq));
  242.   void newscreen __ARGS((struct session *sp));
  243.   void pctick __ARGS((void));
  244. ! void setbit __ARGS((unsigned port,char bits));
  245.   int setirq __ARGS((unsigned irq,INTERRUPT (*handler) __ARGS((void))));
  246.   void sysreset __ARGS((void));
  247.   void systick __ARGS((void));
  248. --- 50,56 ----
  249.   int maskon __ARGS((unsigned irq));
  250.   void newscreen __ARGS((struct session *sp));
  251.   void pctick __ARGS((void));
  252. ! /*void setbit __ARGS((unsigned port,char bits));*/
  253.   int setirq __ARGS((unsigned irq,INTERRUPT (*handler) __ARGS((void))));
  254.   void sysreset __ARGS((void));
  255.   void systick __ARGS((void));
  256. Nov 26 12:44 1991  diff -c -l grinos.orig/kernel.c g/kernel.c Page 1
  257.  
  258.  
  259. *** grinos.orig/kernel.c    Fri Nov 22 10:05:50 1991
  260. --- g/kernel.c    Tue Nov 26 10:35:15 1991
  261. ***************
  262. *** 167,174 ****
  263.       /* Free allocated memory resources */
  264.       if(pp->freeargs){
  265.           argv = pp->parg1;
  266. !         while(pp->iarg-- != 0)
  267. !             free(*argv++);
  268.           free(pp->parg1);
  269.       }
  270.       free(pp->name);
  271. --- 167,176 ----
  272.       /* Free allocated memory resources */
  273.       if(pp->freeargs){
  274.           argv = pp->parg1;
  275. !         while(pp->iarg-- != 0){
  276. !             free(*argv);
  277. !             argv++;
  278. !         }
  279.           free(pp->parg1);
  280.       }
  281.       free(pp->name);
  282. Nov 26 12:44 1991  diff -c -l grinos.orig/mbuf.c g/mbuf.c Page 1
  283.  
  284.  
  285. *** grinos.orig/mbuf.c    Wed Nov 20 16:06:28 1991
  286. --- g/mbuf.c    Tue Nov 26 10:35:25 1991
  287. ***************
  288. *** 37,42 ****
  289. --- 37,43 ----
  290.       while(Intqlen < Nibufs){
  291.           if((bp = alloc_mbuf(Ibufsize)) == NULLBUF)
  292.               break;
  293. + #ifndef UNIX
  294.   #ifndef    notdef        /* Temp hack to satisfy PI DMA requirements */
  295.           dma_abs = ((long)FP_SEG(bp->data) << 4) + (long)FP_OFF(bp->data);
  296.           dma_page = dma_abs >> 16;
  297. ***************
  298. *** 47,52 ****
  299. --- 48,54 ----
  300.               restore(i_state);
  301.               continue;
  302.           }
  303. + #endif
  304.   #endif
  305.   
  306.           i_state = dirps();
  307. Nov 26 12:44 1991  diff -c -l grinos.orig/misc.c g/misc.c Page 1
  308.  
  309.  
  310. *** grinos.orig/misc.c    Wed Nov 20 16:06:28 1991
  311. --- g/misc.c    Tue Nov 26 10:35:33 1991
  312. ***************
  313. *** 59,65 ****
  314.    */
  315.   char *
  316.   strdup(s)
  317. ! const char *s;
  318.   {
  319.       register char *out;
  320.       register int len;
  321. --- 59,65 ----
  322.    */
  323.   char *
  324.   strdup(s)
  325. ! char *s;
  326.   {
  327.       register char *out;
  328.       register int len;
  329. Nov 26 12:44 1991  diff -c -l grinos.orig/nrcmd.c g/nrcmd.c Page 1
  330.  
  331.  
  332. *** grinos.orig/nrcmd.c    Wed Nov 20 16:06:37 1991
  333. --- g/nrcmd.c    Tue Nov 26 10:35:40 1991
  334. ***************
  335. *** 1063,1069 ****
  336.   
  337.       return 0 ;
  338.   }
  339. ! int
  340.   donrload(argc,argv,p)
  341.   int argc ;
  342.   char *argv[] ;
  343. --- 1063,1069 ----
  344.   
  345.       return 0 ;
  346.   }
  347. ! static int
  348.   donrload(argc,argv,p)
  349.   int argc ;
  350.   char *argv[] ;
  351. ***************
  352. *** 1135,1141 ****
  353.       return 0;
  354.   }
  355.   
  356. ! int
  357.   donrsave(argc,argv,p)
  358.   int argc ;
  359.   char *argv[] ;
  360. --- 1135,1141 ----
  361.       return 0;
  362.   }
  363.   
  364. ! static int
  365.   donrsave(argc,argv,p)
  366.   int argc ;
  367.   char *argv[] ;
  368. Nov 26 12:44 1991  diff -c -l grinos.orig/popcli.c g/popcli.c Page 1
  369.  
  370.  
  371. *** grinos.orig/popcli.c    Wed Nov 20 16:06:46 1991
  372. --- g/popcli.c    Tue Nov 26 10:35:47 1991
  373. ***************
  374. *** 278,285 ****
  375.       char *cp;
  376.       struct sockaddr_in fsocket;
  377.       struct pop_ccb    *ccb;
  378. !     void pop_csm(struct pop_ccb *);
  379. !     void quit_session(struct pop_ccb *);
  380.   
  381.       ccb = (struct pop_ccb *)cb1;
  382.       fsocket.sin_family = AF_INET;
  383. --- 278,285 ----
  384.       char *cp;
  385.       struct sockaddr_in fsocket;
  386.       struct pop_ccb    *ccb;
  387. !     void pop_csm __ARGS((struct pop_ccb *));
  388. !     void quit_session __ARGS((struct pop_ccb *));
  389.   
  390.       ccb = (struct pop_ccb *)cb1;
  391.       fsocket.sin_family = AF_INET;
  392. ***************
  393. *** 347,354 ****
  394.   {
  395.       FILE *mf;
  396.   
  397. !     int mlock (char *,char *);
  398. !     int rmlock (char * ,char *);
  399.       void quit_session __ARGS((struct pop_ccb *));
  400.       /* int mlock __ARGS((char *dir,char *id));   */
  401.       /* int rmlock __ARGS((char *dir,char *id));   */
  402. --- 347,354 ----
  403.   {
  404.       FILE *mf;
  405.   
  406. !     int mlock __ARGS((char *,char *));
  407. !     int rmlock __ARGS((char * ,char *));
  408.       void quit_session __ARGS((struct pop_ccb *));
  409.       /* int mlock __ARGS((char *dir,char *id));   */
  410.       /* int rmlock __ARGS((char *dir,char *id));   */
  411. Nov 26 12:44 1991  diff -c -l grinos.orig/popserv.c g/popserv.c Page 1
  412.  
  413.  
  414. *** grinos.orig/popserv.c    Wed Nov 20 16:06:46 1991
  415. --- g/popserv.c    Tue Nov 26 10:35:52 1991
  416. ***************
  417. *** 212,228 ****
  418.   struct pop_scb *scb;
  419.   {
  420.       char password[40];
  421. !     void state_error(struct pop_scb *,char *);
  422. !     void open_folder(struct pop_scb *);
  423. !     void do_cleanup(struct pop_scb *);
  424. !     void read_message(struct pop_scb *);
  425. !     void retrieve_message(struct pop_scb *);
  426. !     void deletemsg(struct pop_scb *,int);
  427. !     void get_message(struct pop_scb *,int);
  428. !     void print_message_length(struct pop_scb *);
  429. !     void close_folder(struct pop_scb *);
  430.   #ifdef POP_FOLDERS
  431. !     void select_folder(struct pop_scb *);
  432.   #endif
  433.   
  434.       if(scb == NULLSCB)
  435. --- 212,228 ----
  436.   struct pop_scb *scb;
  437.   {
  438.       char password[40];
  439. !     void state_error __ARGS((struct pop_scb *,char *));
  440. !     void open_folder __ARGS((struct pop_scb *));
  441. !     void do_cleanup __ARGS((struct pop_scb *));
  442. !     void read_message __ARGS((struct pop_scb *));
  443. !     void retrieve_message __ARGS((struct pop_scb *));
  444. !     void deletemsg __ARGS((struct pop_scb *,int));
  445. !     void get_message __ARGS((struct pop_scb *,int));
  446. !     void print_message_length __ARGS((struct pop_scb *));
  447. !     void close_folder __ARGS((struct pop_scb *));
  448.   #ifdef POP_FOLDERS
  449. !     void select_folder __ARGS((struct pop_scb *));
  450.   #endif
  451.   
  452.       if(scb == NULLSCB)
  453. ***************
  454. *** 369,376 ****
  455.       int deleted = FALSE;
  456.       int msg_no = 0;
  457.       struct stat folder_stat;
  458. !     int newmail(struct pop_scb *);
  459. !     int isdeleted(struct pop_scb *,int);
  460.   
  461.       if (scb->wf == NULL)
  462.           return;
  463. --- 369,376 ----
  464.       int deleted = FALSE;
  465.       int msg_no = 0;
  466.       struct stat folder_stat;
  467. !     int newmail __ARGS((struct pop_scb *));
  468. !     int isdeleted __ARGS((struct pop_scb *,int));
  469.   
  470. Nov 26 12:44 1991  diff -c -l grinos.orig/popserv.c g/popserv.c Page 2
  471.  
  472.  
  473.       if (scb->wf == NULL)
  474.           return;
  475. ***************
  476. *** 534,540 ****
  477.   {
  478.       char line[BUF_LEN];
  479.       long cnt;
  480. !     void rrip(char *);
  481.   
  482.       if(scb == NULLSCB)
  483.           return;
  484. --- 534,540 ----
  485.   {
  486.       char line[BUF_LEN];
  487.       long cnt;
  488. !     void rrip __ARGS((char *));
  489.   
  490.       if(scb == NULLSCB)
  491.           return;
  492. ***************
  493. *** 562,568 ****
  494.   {
  495.       char line[BUF_LEN];
  496.       long ftell();
  497. !     void rrip(char *);
  498.   
  499.       if(scb == NULLSCB)
  500.           return;
  501. --- 562,568 ----
  502.   {
  503.       char line[BUF_LEN];
  504.       long ftell();
  505. !     void rrip __ARGS((char *));
  506.   
  507.       if(scb == NULLSCB)
  508.           return;
  509. Nov 26 12:44 1991  diff -c -l grinos.orig/rspf.c g/rspf.c Page 1
  510.  
  511.  
  512. *** grinos.orig/rspf.c    Wed Nov 20 16:06:57 1991
  513. --- g/rspf.c    Tue Nov 26 10:36:01 1991
  514. ***************
  515. *** 392,398 ****
  516.           goodbadnews(adj);            /* ..that is good news */
  517.       break;
  518.       }
  519. !     stop_timer(&oldadj->timer);        /* stop timer before free() -- KZ1F */
  520.       free((char *)oldadj);
  521.   }
  522.   
  523. --- 392,399 ----
  524.           goodbadnews(adj);            /* ..that is good news */
  525.       break;
  526.       }
  527. !     if(oldadj != NULLADJ)            /* Careful! KA9WSB */
  528. !         stop_timer(&oldadj->timer);        /* stop timer before free() -- KZ1F */
  529.       free((char *)oldadj);
  530.   }
  531.   
  532. Nov 26 12:45 1991  diff -c -l grinos.orig/version.c g/version.c Page 1
  533.  
  534.  
  535. *** grinos.orig/version.c    Wed Nov 20 16:07:20 1991
  536. --- g/version.c    Tue Nov 26 10:37:52 1991
  537. ***************
  538. *** 2,10 ****
  539.   #include "config.h"
  540.   #include "global.h"
  541.   #include "mbuf.h"
  542. ! char Version[] = "910618 (PA0GRI v1.7j)";
  543. ! char Version2[] = "This version produced by Gerard van der Grinten - PA0GRI";
  544.   int
  545.   doinfo(argc,argv,p)
  546.   int argc;
  547. --- 2,9 ----
  548.   #include "config.h"
  549.   #include "global.h"
  550.   #include "mbuf.h"
  551. ! char Version[] = "910618 (PA0GRI v1.7j) (KA9WSB Tb)";
  552. ! char Version2[] = "This version produced by Gerard van der Grinten - PA0GRI\nPorted to SunOS by KA9WSB";
  553.   int
  554.   doinfo(argc,argv,p)
  555.   int argc;
  556. ***************
  557. *** 12,17 ****
  558. --- 11,17 ----
  559.   void *p;
  560.   {
  561.       tprintf("NOS configuration information.   (PA0GRI version 911020)\n");
  562. +     tprintf("setjmp/longjmp version for UNIX systems\n");
  563.       tprintf("containing axip, RARP, POP2, NNTP, TIP,");
  564.   #ifdef SERVERS
  565.       tprintf(" TCP servers,\n");
  566. Only in grinos.orig:
  567.     makefile
  568.  
  569. Only in g:
  570.     Makefile
  571.     bsd_io.c
  572.     bsd_nit.c
  573.     bsd_tun.c
  574.     bsdunix.c
  575.     dos.h
  576.     if_tnreg.h
  577.